<div class="well white" >
	<?php if(Yii::app()->user->hasFlash('success')):?>
	<div class="alert alert-success">
        <button data-dismiss="alert" class="close" type="button">×</button>
        <strong>上传成功</strong> 上传标签成功.
    </div>
    <?php endif;?>
	<a class="action_add" data-toggle="modal" href="#add_tag" href="#">添加标签</a>
	<?php 
	$this->widget('zii.widgets.grid.CGridView', array(
	    'dataProvider'=>$model->search(),
		'filter'=>$model,
		'itemsCssClass'=>'table table-striped table-bordered table-condensed font13',
		'template'=>'{items}{pager}',
	    'columns'=>array(
	    	'tag_id',
	    	'category_id',
	    	'tag_group_name_cn',
	    	'tag_group_name_en',
	        'tags',  
	    	'display_order',        // display the 'title' attribute
	        array(            // display a column with "view", "update" and "delete" buttons
	            'class'=>'CButtonColumn',
	        		'deleteButtonUrl'=>'Yii::app()->createUrl("category/delete",array("id"=>$data->tag_id,"type"=>"Tag"))',
	        ),
	    ),
	));
	?>
</div>
<!-- Tag CGridView END -->

<div class="modal hide" id="add_tag">
 <?php $this->renderPartial('_tagForm',array('tagForm'=>$tagForm),false);?>
</div>
<!-- tagForm END -->
